﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Barbar.Colonization.Core.Localization {
  public class TranslatorString {
    private string m_Code;

    public TranslatorString(string code) {
      if (code == null)
        throw new ArgumentNullException("code");
      m_Code = code;
    }

    public string Code {
      get { return m_Code; }
    }

    public override string ToString() {
      return Translator.Instance.GetText(m_Code);
    }
  }
}
